HasExtension
TheHasExtension
method returns a Boolean value that indicates whether the object supports the specified extension.
ODBoolean HasExtension (in ODType extensionName);
extensionName
- The name of the extension to look for.
- return value
kODTrue
if the object supports the specified extension, otherwisekODFalse
.DISCUSSION
Your part can call this method before accessing an object's extension.The
ODObject
class has no inherent extensions of its own and always returnskODFalse
.OVERRIDING
Your subclass ofODPart
can override this method if your part supports extensions. If your part does not support the specified extension, your override method must call its inheritedHasExtension
method at the end of your implementation.SEE ALSO
TheODObject::AcquireExtension
method (page 440).
TheODObject::ReleaseExtension
method (page 444).
TheODPart
class (page 459).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Making Your Semantic-Interface Extension Available" on page 433 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help